package com.feature50.makeover.chart;

import java.awt.*;

public class DefaultColorResolver implements ColorResolver {
    private Color color;

    public DefaultColorResolver(Color color) {
        this.color = color;
    }

    public Color getColor(Comparable rowKey, Comparable columnKey, int rowIndex, float value) {
        Color c = color;
        for (int i = 0; i < rowIndex; i++) c = c.darker();
        return c;
    }
}